package com.fxnotes.common.ui;

import java.util.ArrayList;
import java.util.List;

public class NavigationPathBuilder {

    private List<String> elements = new ArrayList<>();

    public NavigationPathBuilder append(String element) {
        elements.add(element);
        return this;
    }

    public static NavigationPathBuilder create() {
        return new NavigationPathBuilder();
    }

    public NavigationPath build() {
        return new NavigationPath(elements);
    }
}